package mr.zhang.pojo.model;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

import java.util.HashSet;
import java.util.Set;

/**
 * TProject entity. @author MyEclipse Persistence Tools
 */
@Component("tPoject")
public class TProject implements java.io.Serializable {

	// Fields
	//��Ŀid
	private Integer id;
	//��Ŀ����Ӫ����
	private TSalesDirector TSalesDirector;
	//��Ŀ���
    @NotEmpty
	private String projectName;
	
	//��Ŀ����Ӫ����

	private Set TSalesManagers = new HashSet(0);
	
	//��Ŀ�µ������Ŷ�
    @NotEmpty
	private Set TTeams = new HashSet(0);

	// Constructors

	/** default constructor */
	public TProject() {
	}

	/** minimal constructor */
	public TProject(String projectName) {
		this.projectName = projectName;
	}

	/** full constructor */
	public TProject(TSalesDirector TSalesDirector, String projectName,
			 Set TSalesManagers, Set TTeams) {
		this.TSalesDirector = TSalesDirector;
		this.projectName = projectName;
		
		this.TSalesManagers = TSalesManagers;
		this.TTeams = TTeams;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public TSalesDirector getTSalesDirector() {
		return this.TSalesDirector;
	}

	public void setTSalesDirector(TSalesDirector TSalesDirector) {
		this.TSalesDirector = TSalesDirector;
	}

	public String getProjectName() {
		return this.projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public Set getTSalesManagers() {
		return this.TSalesManagers;
	}

	public void setTSalesManagers(Set TSalesManagers) {
		this.TSalesManagers = TSalesManagers;
	}

	public Set getTTeams() {
		return this.TTeams;
	}

	public void setTTeams(Set TTeams) {
		this.TTeams = TTeams;
	}

}